package week03.starbucks_ex;

public class CoffeeList extends decorator {
    private double price=11;

    public CoffeeList(IDrink drink) {
        super(drink);
    }
    public void setCoffee() {
        System.out.println("咖啡"+price);
    }
    public double getPrice() {
        super.getPrice();
        setCoffee();
        return price;
    }
}
